package org.cmg.study.mybatis.entity;

/**
 * @author CMG
 * @version 1.0
 * @cLassName Student
 * @description
 * @date 2021/9/7 11:37
 **/
public class Student {
    private int id;
    private String name;
    private int sex;
    private StudentCard studentCard;

    public Student() {
    }

    public Student(String name, int sex, StudentCard studentCard) {
        this.name = name;
        this.sex = sex;
        this.studentCard = studentCard;
    }

    public Student(int id, String name, int sex, StudentCard studentCard) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.studentCard = studentCard;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public StudentCard getStudentCard() {
        return studentCard;
    }

    public void setStudentCard(StudentCard studentCard) {
        this.studentCard = studentCard;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", studentCard=" + studentCard +
                '}';
    }
}
